class CreateSourceTypes < ActiveRecord::Migration
  def self.up
    create_table :source_types do |t|
      t.string :name
      t.string :code
      t.string :method
      t.boolean :requires_url
      
      t.timestamps
    end
    
    SourceType.create(:name => "RSS", :method => "pull")
    SourceType.create(:name => "Email", :method => "push")
    SourceType.create(:name => "Twitter", :method => "push")
  end

  def self.down
    drop_table :source_types
  end
end
